<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>磐石通行证_头像</title>
    <link rel="stylesheet" href="../lib/layui/css/layui.css">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="css/user-head-portrait.css">
</head>
<body>
<div class="layui-card">
    <div class="layui-card-header">
        <h2>修改头像</h2>
    </div>
    <div class="layui-card-body">
        <form class="layui-form" action="#" id="form-user-head" method="post">
            <input type="file" name="hpFile" style="display: none" id="input-hp" accept="image/*">
            <div class="layui-form-item">
                <div class="layui-card">
                    <div class="layui-card-header">选择图片</div>
                    <div class="layui-card-body">
                        <p>点击头像选择图片</p>
                        <div class="image-wrapper">
                            <img src="../img/default-head-portrait.jpg" alt="" id="image-head-portrait">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="../lib/jquery/jquery-2.2.4.min.js"></script>
<script src="../lib/layui/layui.js"></script>
<script src="js/user-head-portrait.js"></script>
</body>
</html>